Skip to content

[9.4](backport #8313) dra: delete artifacts after successfully DRA published - #8353

Open
mergify[bot] wants to merge 1 commit into
9.4from
mergify/bp/9.4/pr-8313
Open

mergify[bot] wants to merge 1 commit into
9.4from
mergify/bp/9.4/pr-8313

Conversation

@mergify

@mergify mergify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

What is the problem this PR solves?

Keep our storage cost under control.

How does this PR solve the problem?

Delete artifacts automatically after successfully running the DRA step.

How to test this PR locally

In the CI only, see https://buildkite.com/elastic/fleet-server-package-mbp/builds/4923

image

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool

Related issues


This is an automatic backport of pull request #8313 done by [Mergify](https://mergify.com).

@mergify
mergify Bot requested a review from a team as a code owner November 24, 2026 09:01
@mergify mergify Bot added the backport label Nov 24, 2026
@mergify
mergify Bot requested review from lorienhu and removed request for a team November 24, 2026 09:01
@mergify mergify Bot added the backport label Nov 24, 2026
@mergify mergify Bot assigned v1v Nov 24, 2026
@mergify
mergify Bot requested review from a team and a balanced review from Copilot November 24, 2026 09:01
@mergify

mergify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Artifact cleanup can run when DRA publication is skipped or disabled, removing downloadable Buildkite artifacts without a published replacement.

1 open issue
What changed in this PR

Backports #8313 to 9.4, adding automated Buildkite artifact cleanup after DRA publication to reduce storage costs.

Changes:

  • Adds a wait barrier before the cleanup step.
  • Configures Vault authentication and the artifact-deletion plugin on a Kubernetes agent, with deletion errors treated as non-blocking.
File Description
.buildkite/​pipeline.package.mbp.yml Adds the wait barrier and authenticated artifact-cleanup step.

Review effort: Balanced

- wait: ~

- label: ":wastebasket: Delete build artifacts"
key: "delete_build_artifacts"
@v1v
v1v enabled auto-merge (squash) November 24, 2026 09:08
@github-actions

Copy link
Copy Markdown
Contributor

Dependency review finished without posting an analysis comment.

If you expected a review, push a new commit to this pull request (or close and reopen it) to try again.

Workflow run: https://github.com/elastic/fleet-server/actions/runs/45361304547

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants